import bus from '@/bus'
let data = {
  status: 'pass',
  totalItem: 1,
  pageSize: window.$pageSize,
  currentPage: 1,
  columns: [{
    title: '标签名称',
    key: 'tagName',
    minWidth: 200,
    align: 'left'
  }, {
    title: '操作',
    align: 'right',
    minWidth: 160,
    render: (h,params) => {
      return h('div', [
        h('Button', {
          class: 'mr',
          props:{
            size: 'small',
            type: 'primary'
          },
          on: {
            click: () => {
              bus.$emit('onEdit', { item: params.row })
            }
          }
        }, '编辑'),
        h('Button', {
          props: {
            size:'small',
            type: 'warning'
          },
          on: {
            click: () => {
              bus.$emit('onDelete', params.row.id, params.row.tagName, params.index)
            }
          }
        }, '删除')
      ])
    }
  }],
  data: []
}
export default data